#include "Triangle.h"

Triangle::Triangle()
{
    points[0] = points[1] = points[2] = Vertex3D();
}
Triangle::Triangle(Vertex3D a, Vertex3D b, Vertex3D c)
{
    points[0] = a;
    points[1] = b;
    points[2] = c;
}

Triangle::~Triangle()
{
    //dtor
}

Vertex3D Triangle::getNormal()
{
    Vertex3D temp = CrossProduct(points[2]-points[1], points[1]-points[0]);
    return temp / (temp).getR();
}
